<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<h2 class="contentTitle">编辑设备信息</h2>
 
<div class="pageContent">
	
	<form method="post" action="Device_Save" class="pageForm required-validate"  onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="97">
		    <dl>
				<dt>设备编号：</dt>
				<dd>
					<input type="text" name="device.deviceid" value="${device.deviceid}" <s:if test="editorType=='modify'">readonly</s:if> class="required" />  <!-- required Deviceid -->
					<input type="hidden" name="editorType" value="${editorType}" />
				</dd>
			</dl>
			<dl>
				<dt>设备名称：</dt>
				<dd>
					<input type="text"  name="device.assetname" value="${device.assetname}"  class="required" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			
			<dl>
				<dt>资产标号：</dt>
				<dd>
					<input type="text"  name="device.assetnumber" value="${device.assetnumber}"  class="required" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>设备类型：</dt>
				<dd>
					<input type="text"  name="device.devicetype" value="${device.devicetype}"  class="required" />  <!-- required Device.device -->
					 <span class="info">*必填(例：电脑、空调....)</span> 
				</dd>
			</dl>
			
			
			<dl>
				<dt>购置日期：</dt>
				<dd>
					<input type="date" name="device.buydate" value="<s:date name="device.buydate" format="yyyy-MM-dd" />" class="date required" />  <!-- date required -->
					<%-- <span class="info">*必填</span> --%>
				</dd>
			</dl>
				<dl>
				<dt>所属实验室：</dt>

				<s:if test="editorType=='add'">
					 	<input type="text" name="device.belongroom" lookupName="room.roomid" value="${device.belongroom}" readonly class="required" class="required"/>   <!-- textInput -->
				        <a class="btnLook" href="Room_List_LookUp" lookupGroup="room">查找</a>
				</s:if>
				<s:elseif test="editorType=='modify'">
					<input type="text" name="device.belongroom" value="${device.belongroom}"  readonly="readonly"  class="required" class=""/>   <!-- textInput -->
				</s:elseif>	
				<s:else>
					<input type="text" name="device.belongroom" lookupName="room.roomid" value="${device.belongroom}" readonly class="required" class="required"/>   <!-- textInput -->
				    <a class="btnLook" href="Room_List_LookUp" lookupGroup="room">查找</a>
				</s:else>

			</dl>	
			<dl>
				<dt>单价：</dt>
				<dd>
					<input type="text"  name="device.price" value="${device.price}"  class="required number" />元  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>数量：</dt>
				<dd>
					<input type="text"  name="device.count" value="${device.count}"  class="required digits" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>	
			<dl>
				<dt>计量单位：</dt>
				<dd>
					<input type="text"  name="device.measurunit" value="${device.measurunit}"  class="required" />  <!-- required Device.device -->
					 <span class="info">*必填(例：台、个....)</span> 
				</dd>
			</dl>
			<dl>
				<dt>型号规格：</dt>
				<dd>
					<input type="text"  name="device.model" value="${device.model}"  class="required" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>生产厂家：</dt>
				<dd>
					<input type="text"  name="device.manufacturer" value="${device.manufacturer}"  class="required" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>设备状态：</dt>
				<dd>
					<input type="text"  name="device.devstate" value="${device.devstate}"  class="required" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>录入日期：</dt>
				<dd>
					<input type="date" name="device.enterdate" value="<s:date name="device.enterdate" format="yyyy-MM-dd" />" class="date required" />  <!-- date required -->
					<%-- <span class="info">*必填</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>操作人员：</dt>
				<dd>
					<input type="text"  name="device.operator" value="${session.uname}"  class="" readonly="readonly" />  <!-- required Device.device -->
					<%-- <span class="info">*必填(例：电脑、空调....)</span> --%>
				</dd>
			</dl>
			<dl>
				<dt>备注：</dt>
				<dd>					
					<textarea cols="45" rows="10" name="device.note"  class="" minlength="0" maxlength="255">${device.note}</textarea> <!--  required -->
				<%-- 	<span class="info">*必填(300字以内)</span> --%>
				</dd>
			</dl>
					
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

